package com.sjgtw.cloud.common.log.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;
import com.sjgtw.cloud.system.api.domain.SysOperLog;
import com.sjgtw.cloud.system.api.service.RemoteLogService;

/**
 * <p>Title: 异步调用API日志服务</p>
 * <p>Description: </p>
 * @author Admin
 * @date 2020-7-4
 */
@Service
public class AsyncLogService
{
	@Autowired
	private RemoteLogService remoteLogService;

	/**
	 * 保存系统日志记录
	 */
	@Async
	public void saveSysLog(SysOperLog sysOperLog) {
		remoteLogService.saveLog(sysOperLog);
	}
}
